#FROM openjdk:8-jre-slim
#MAINTAINER xuxueli
#
#ENV PARAMS=""
#
#ENV TZ=PRC
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#
#ADD target/xxl-job-admin-*.jar /app.jar
#
#ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /app.jar $PARAMS"]

FROM eclipse-temurin:8-jre-alpine
LABEL maintainer="xuxueli"

ENV TZ=PRC \
    JAVA_OPTS="" \
    PARAMS=""

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY target/xxl-job-admin-*.jar /app.jar

ENTRYPOINT ["sh", "-c", "java -jar $JAVA_OPTS /app.jar $PARAMS"]
